<?php


use App\Exceptions\BusinessException;
use \App\Exceptions\ValidatedException;

if(!function_exists('businessException')){
    /**
     * 输出业务错误
     * @param $message
     * @throws BusinessException
     */
    function businessException($message){
        throw new BusinessException($message);
    }
}


if(!function_exists('validatedException')){
    function validatedException($message){
        throw new ValidatedException($message);
    }
}